package cn.wolfcode.trip.base.service;

import cn.wolfcode.trip.base.domain.TravelCommend;
import cn.wolfcode.trip.base.mapper.TravelCommendMapper;
import cn.wolfcode.trip.base.query.TravelCommendQuery;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

public interface ITravelCommendService {

    /**
     * 查询所有推荐游记
     * @param qo
     * @return
     */
    PageInfo<TravelCommend> query(TravelCommendQuery qo);

    /**
     * 更新/修改推荐游记
     * @param travelCommend
     */
    void saveOrUpdate(TravelCommend travelCommend);

    /**
     * 查询app所有推荐游记
     * @param qo
     * @return
     */
    List<Map> queryApp(TravelCommendQuery qo);
}
